<?php

use Jialeo\LaravelSchemaExtend\Schema;
//use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopVisitsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_visits', function (Blueprint $table) {
            $table->comment = '前台访问表';
            $table->increments('id')->comment('前台访问ID');
			$table->string('ip',100)->default('')->comment('访问ip');	 
            $table->timestamp('created_at')->nullable()->comment('访问访问时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_visits');
    }
}
